package com.framework.Module.system.task;

import com.framework.Table.Table;
import com.framerock.baselib.CDate;
import com.framerock.baselib.Rock;


public class Tabletask extends Table {

    protected void initTable() {
        this.tablename   = "task";
        this.tablenamesm = "计划任务";

        this.flowsetMap  = Rock.getMap(new String[]{
                "type", "系统",
                "sort", "913",
                "isxt", "1",
                "summary", "{type}.{name}",
                "sortdir","`sort` ASC"
        });

        this.addfields("type", "varchar(50)", "", "分类", new String[]{
                "isbt","1",
                "isss","1"
        });
        this.addfields("name", "varchar(50)", "", "名称", new String[]{
                "isbt","1",
                "isss","1"
        });
        this.addfields("url", "varchar(500)", "", "地址@@如day,run", new String[]{
                "isbt","1",
                "isss","0",
                "zdsm","如：day,run就要在com/framework|mycode/Task/Taskday下创建一个run的方法"
        });
        this.addfields("ratecont", "varchar(500)", "", "运行时间@@保存后点(操作→设置运行时间)里设置", new String[]{
                "islu","0",
                "isalign","1"
        });
        this.addfields("status", "tinyint(1)", "1", "状态@0|已停用|gray,1|已启用|green@启用", new String[]{
                "isss","0",
                "fieldstype","checkbox",
                "iseditlx","1"
        });
        this.addfields("sort", "int(11)", "0", "排序", new String[]{
                "ispx","1",
                "iseditlx","1"
        });
        this.addfields("explain", "varchar(500)", "", "说明", new String[]{
                "fieldstype","textarea",
                "isalign","1"
        });
        this.addfields("lastdt", "datetime", null, "最后运行", new String[]{
                "islb","1",
                "islu","0"
        });
        this.addfields("id", "int(11)", "0", "ID");
    }


}
